package com.galaxy.provider.user.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户控制类
 *
 * @author caijb
 * @version 1.0.0
 * @date 2018-10-19 13:24
 */
@RestController
public class UserController {

    @GetMapping("/getUser/{id}")
    public String getUserById(@PathVariable("id") String id) {
        return "调用根据用户id获取服务的方法";
    }

    @GetMapping("/getAll")
    public String getUserList() {
        return "调用获取用户列表方法";
    }
}
